<%@ Page Language="VB" AutoEventWireup="false" CodeFile="PolicyDetails.aspx.vb" Inherits="Mngt_Info_PolicyDetails" %>

<%@ Register Src="../WebControls/PolicySearch.ascx" TagName="PolicySearch" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Policy Details</title>
    <link href="../Style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="../scripts/dateFunc.js"></script>
    <script runat="server">
       Sub CheckUncheckAll(sender As Object, e As EventArgs)
         dim state
         if check_all.Checked then
           state = true
         else
           state = false
         end if
         
         dim i
         For i = 0 To chSection.Items.Count-1 Step 1
            chSection.Items(i).Selected = state
         Next i
         
       End Sub
    </script>
</head>
<body>
    <center>
    <form id="form1" runat="server">
    <div>
        <div class="rptHeader" style="width: 800px">Policy Details</div>
        <div class="buffer" style="width: 800px"></div>
        <div class="divider" style="width: 800px"></div>
        <div style="width: 800px; text-align: left;">
            <asp:CheckBoxList ID="chSection" runat="server" RepeatColumns="5" Width="800px" Font-Names="Verdana" Font-Size="10pt">
                <asp:ListItem Text="Section 1" Value="Policy_Section1"></asp:ListItem>
                <asp:ListItem Text="Section 2" Value="Policy_Section2"></asp:ListItem>
                <asp:ListItem Text="Section 3" Value="Policy_Section3"></asp:ListItem>
                <asp:ListItem Text="Section 4" Value="Policy_Section4"></asp:ListItem>
                <asp:ListItem Text="Section 5" Value="Policy_Section5"></asp:ListItem>
                <asp:ListItem Text="Policy Owner Info" Value="Policy_Owner_Info"></asp:ListItem>
                <asp:ListItem Text="Policy Insured Info" Value="Policy_Insured_Info"></asp:ListItem>
                <asp:ListItem Text="Premium Riders" Value="Policy_Prem_Rider"></asp:ListItem>
                <asp:ListItem Text="Policy Investments" Value="Policy_Investments"></asp:ListItem>
                <asp:ListItem Text="Beneficiaries" Value="Policy_Benefs"></asp:ListItem>
                <asp:ListItem Text="Trustees" Value="Policy_Trustees"></asp:ListItem>
                <asp:ListItem Text="Attachments" Value="Policy_Attachments"></asp:ListItem>
                <asp:ListItem Text="Premium Payments" Value="Policy_Payment"></asp:ListItem>
            </asp:CheckBoxList>
            <div style="text-align: right; font-family: Verdana; font-size:10pt">
                <asp:CheckBox id="check_all" Text="Check/Uncheck All" TextAlign="Right" AutoPostBack="True" OnCheckedChanged="CheckUncheckAll" runat="server" />
            </div>
        </div>
        <uc1:PolicySearch ID="PolicySearch1" runat="server" />
    </div>
    </form>
    </center>
</body>
</html>
